package com.nc.cloud.authority.client.configuration;

/**
 * @Description
 * @ClassName configuration
 * @Author NC—Cloud
 * @date 2020.03.30 08:45
 */


import com.nc.cloud.authority.client.config.ServiceAuthConfig;
import com.nc.cloud.authority.client.config.UserAuthConfig;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@Configuration
@ComponentScan({"com.nc.cloud.authority.client"})
public class AutoConfiguration {
    @Bean
    ServiceAuthConfig getServiceAuthConfig(){
        return new ServiceAuthConfig();
    }

    @Bean
    UserAuthConfig getUserAuthConfig(){
        return new UserAuthConfig();
    }

}

